package design.InterpreterPattern;

/**
 * Created by looper on 2017/9/7.
 */
public class Subtract implements Interpreter {
  @Override
  public int interpret(Context context) {
    //两数相减
    return context.getNum1() - context.getNum2();
  }
}
